<?php

include_once ("mysql_conn.php");
$name = $_GET['name'];
$conn = new mysql_conn();
$conn->add_upadate("insert into type(`name`) values('".$name."');");
echo "<script>alert('添加成功!');window.location='homeAdminTypes.php';</script>";
?>